package com.shop.vo;

import com.shop.entity.AttributeDTO;
import com.shop.entity.ImageDTO;
import com.shop.entity.SkuDTO;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Iterator;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class ProductAggregationVO {
    private Long id;
    private String name;
    private String description;
    private BigDecimal price;
    private Integer stock;
    private Boolean isActive;
    private String categoryName;
    private String brandName;
    private Integer categoryId;

    // JSON 聚合字段
    private List<SkuDTO> skus;
    private List<ImageDTO> images;
    private List<AttributeDTO> attributes;
}

